
package net.lesscoding.message;

import lombok.Data;

/**
 * @author eleven
 * @date 2024/10/31 16:32
 * @apiNote
 */
@Data
public class GroupChatResponseMessage extends AbstractResponseMessage{
    private String groupName;

    private String username;

    private String content;

    public GroupChatResponseMessage(boolean success, String reason) {
        super(success, reason);
    }

    public GroupChatResponseMessage(String groupName, String username, String content) {
        super(true, "发送成功");
        this.groupName = groupName;
        this.username = username;
        this.content = content;
    }

    @Override
    public int getMessageType() {
        return GROUP_CHAT_RESPONSE;
    }
}
